@extends('mobile_end.layouts.default')
{{-- content_header --}}

@section('container')

<div class="ui-navigator">
    <div class="carttop"><i class="icon-user icon-2x"></i> 我的账户</div>
</div>
<br/>
<h3>账户余额</h3>
<table class="table table-bordered table-striped">
    <colgroup>
        <col>
        <col>
    </colgroup>
    <thead>
    <tr>
        <th class="text-center span4">{{ MemberAccount::$column['account_type'] }}</th>
        <th class="text-right  span4">{{ MemberAccount::$column['current_money'] }}</th>
        <th class="text-center  span4">{{ MemberAccount::$column['created_at'] }}</th>
    </tr>
    </thead>
    <tbody>
    @foreach($member->accounts as $entry)
    @include('mobile_end.layouts._account_list_li', array('entry'=>$entry))
    @endforeach
    </tbody>
</table>
<br/>
<h3>财务流水</h3>
<table class="table table-bordered table-striped">
    <colgroup>
        <col>
        <col>
        <col>
        <col>
        <col>
    </colgroup>
    <thead>
    <tr>
        <th class="text-center span4">{{ Form::orderLink($links, MemberAccountLog::$column['created_at'], 'created_at', true) }}</th>
        <th class="text-center span2">{{ Form::orderLink($links, '类型', 'operate_type') }}</th>
        <th class="text-center span3">{{ Form::orderLink($links, MemberAccountLog::$column['account_type'], 'account_type') }}</th>
        <th class="text-center  span3">{{ Form::orderLink($links, MemberAccountLog::$column['happen_money'], 'happen_money', true) }}</th>
    </tr>
    </thead>
    <tbody>
    @foreach($entries as $entry)
        @include('mobile_end.layouts._account_log_list_li', array('entry'=>$entry))
    @endforeach
    </tbody>
</table>

<div class="pagination">
    {{ $entries->links('pagination::mobile') }}
</div>

<div class="cartdiv tdright"> <span class="button-wrap"> <a onclick="window.history.back()" class="button button-block button-pill button-tiny button-primary"><i class="icon-reply"></i>返回</a> </span> </div>

@stop
